package com.cloud.force.api.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;

import com.cloud.force.api.bean.RecForceSearchBean;
import com.cloud.force.api.bean.RecForceSearchCriteria;
import com.cloud.force.api.entity.RecForce;
import com.cloud.force.api.provider.RecForceSearchPageProvider;
import com.cloud.force.common.utils.BaseMapperHelper;

public interface RecForceMapper extends BaseMapperHelper<RecForce> {

	/**
	 * 查询列表，查询案卷信息
	 * 
	 * @param criteria
	 * @return
	 */
	@SelectProvider(type = RecForceSearchPageProvider.class, method = "listPage")
	@Results({ @Result(property = "recId", column = "rec_id", javaType = Long.class),
			@Result(property = "taskNum", column = "task_num", javaType = String.class),
			@Result(property = "recTypeId", column = "rec_type_id", javaType = String.class),
			@Result(property = "recTypeName", column = "rec_type_name", javaType = String.class),
			@Result(property = "registerDate", column = "register_date", javaType = String.class),
			@Result(property = "eventSrcId", column = "event_src_id", javaType = String.class),
			@Result(property = "eventSrcName", column = "event_src_name", javaType = String.class),
			@Result(property = "litigantName", column = "litigant_name", javaType = String.class),
			@Result(property = "domainTypeId", column = "domain_type_id", javaType = String.class),
			@Result(property = "domainTypeName", column = "domain_type_name", javaType = String.class),
			@Result(property = "unitName", column = "unit_name", javaType = String.class),
			@Result(property = "forcesDocNum", column = "forcesDocNum", javaType = String.class),
			@Result(property = "causeContent", column = "cause_content", javaType = String.class) })
	List<RecForceSearchBean> searchForcePage(RecForceSearchCriteria criteria);
}